package com.ruoyi.project.edu.course.domain;

import com.ruoyi.project.system.att.domain.SysUpAtt;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 课程对象 edu_course
 *
 * @author yueqiangu
 * @date 2021-02-27
 */
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String title;

    /** 专业ID */
    private String proId;

    /** 专业名称 */
    @Excel(name = "专业名称")
    private String proName;

    /** 教师 */
    @Excel(name = "教师")
    private String userName;

    /** 年级 */
    @Excel(name = "年级")
    private String grade;

    /** 介绍 */
    @Excel(name = "介绍")
    private String introduce;

    /** 机构ID */
    private Long deptId;

    /** 机构名称 */
    @Excel(name = "机构名称")
    private String deptName;

    /** 封面 */
    @Excel(name = "封面")
    private String image;

    /** 视频 */
    @Excel(name = "视频")
    private String video;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;
    /**
     * 视频课件对象字符串
     */
    private String upAttListJosn;
    /**
     * 视频课件List
     */
    private List<SysUpAtt> upAttList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setProId(String proId)
    {
        this.proId = proId;
    }

    public String getProId()
    {
        return proId;
    }
    public void setProName(String proName)
    {
        this.proName = proName;
    }

    public String getProName()
    {
        return proName;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setGrade(String grade)
    {
        this.grade = grade;
    }

    public String getGrade()
    {
        return grade;
    }
    public void setIntroduce(String introduce)
    {
        this.introduce = introduce;
    }

    public String getIntroduce()
    {
        return introduce;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getDeptName()
    {
        return deptName;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setVideo(String video)
    {
        this.video = video;
    }

    public String getVideo()
    {
        return video;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getUpAttListJosn() {
        return upAttListJosn;
    }

    public void setUpAttListJosn(String upAttListJosn) {
        this.upAttListJosn = upAttListJosn;
    }

    public List<SysUpAtt> getUpAttList() {
        return upAttList;
    }

    public void setUpAttList(List<SysUpAtt> upAttList) {
        this.upAttList = upAttList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("proId", getProId())
            .append("proName", getProName())
            .append("userName", getUserName())
            .append("grade", getGrade())
            .append("introduce", getIntroduce())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("image", getImage())
            .append("video", getVideo())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
